<script setup>
import { message } from 'ant-design-vue'
import {getCurrentInstance} from "vue";
import AskModal from "~/contentScripts/views/tao/detail/components/analysis/components/askModal.vue";
import { isLogin } from '~/logic'
const item = getCurrentInstance().proxy.$item
const emit = defineEmits(['login'])
const instance = getCurrentInstance()
const visible = ref(false)
const __option = instance.appContext.provides.option;
const handle = () => {
  if (isLogin({emit}, __option)) {
    visible.value = true
  }
}
</script>

<template>
  <div class="bold inner-box btn bold" @click="handle">
    问大家分析
  </div>
  <ask-modal :visible="visible" :item="item" @close="visible=false"/>
</template>

<style scoped>

</style>
